package com.dfbz.dao;

import com.dfbz.entity.Dept;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface DeptDao extends Mapper<Dept> {


    @Select("select d.`name` \n" +
            "from dept d")
     List<Dept> deptList();

}
